package com.mzba.zxdlyllp;

import android.os.Bundle;
import android.text.Html;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.actionbarsherlock.app.SherlockFragment;
import com.mzba.zxdlyllp.db.SexTable;
import com.mzba.zxdlyllp.db.SexTable.SexEntity;
/**
 * 
 * @author 06peng
 *
 */
public class SexPositionFragmentItem1 extends SherlockFragment {
	
	private String content;

	
	public SexPositionFragmentItem1(String title) {
		SexTable st = new SexTable(getSherlockActivity());
		SexEntity entity = st.get(title);
		content = new String(entity.getContent());
	}

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
	}
	
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
		View view = inflater.inflate(R.layout.masurbation_fragment, null);
		TextView tv = (TextView) view.findViewById(R.id.bunch_of_text);
		tv.setTextSize(16.0f);
		tv.setPadding(0, 2, 0, 3);
		tv.setText(Html.fromHtml(content));
		return view;
	}
	
}
